/* Created by Aquariuslt on 5/20/17.*/


FinishedOrdersController.$inject = ['ordersService','$scope'];
function FinishedOrdersController(ordersService,$scope) {
   var $ = require('jquery');
    $('#nav').show();
  var vm = $scope.vm = {};
  vm.orderlist = [];

 vm.merchant = JSON.parse(sessionStorage.merchant);  //前端session维持的session

  ordersService.finishedOrderlist(vm.merchant.icnum,function(err,orderlist){
        vm.orderlist = orderlist;
  });
}

module.exports = FinishedOrdersController;